package com.cai.oamanager.dao;

import com.cai.oamanager.entity.Course;
import com.cai.oamanager.entity.Curricu;
import com.cai.oamanager.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.omg.CORBA.INTERNAL;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/3/3 10 : 15
 * @package：com.cai.oamanager.dao
 */
@Mapper
public interface CurricuDao {

    List<Curricu> getCurricus(@Param("pid") String pid, @Param("start") Integer start, @Param("size") Integer size);

    void addCurricu(@Param("curricu") Curricu curricu);

    void updateCurricu(@Param("curricu") Curricu curricu);

    List<Student> getStudents(@Param("teacherId") String teacherId);

    Curricu getOneCurricu(@Param("stuId") Integer stuId, @Param("courseId") Integer courseId);

    List<Curricu> getAllCurricus(@Param("pid") String pid,@Param("courseId") Integer courseId);

    /*******/
    List<Course> getCourse(@Param("semester") String semester,@Param("year") String year);


    List<Curricu> getCurricuStudent(@Param("stuId") Integer stuId,@Param("semester") String semester,@Param("year") String year);
}
